c program to find average of n numbers using functions